<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<JugglingMvc.Models.Jugglers.JugglersFormViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
          <p>
             <label for="Id">Id: <%=Model.Juggler.Id %></label>
                <%=Html.Hidden("Id", Model.Juggler.Id)%>
              
           
            <p>
                <label for="Name">Name:</label>
                <%= Html.TextBox("Name") %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                 <label for="SpecialtyId">Specialty:</label>
                <%= Html.DropDownList("SpecialityId", Model.Specialities)%>
            </p>
            <p>
                <label for="WebPage">WebPage:</label>
                <%= Html.TextBox("WebPage") %>
                <%= Html.ValidationMessage("WebPage", "*") %>
            </p>
            <p>
                <label for="BornDay">BornDay:</label>
                <%= Html.TextBox("BornDay") %>
                <%= Html.ValidationMessage("BornDay", "*") %>
            </p>
            <p>
               <label for="TeamId">Team:</label>
                <%= Html.DropDownList("TeamId", Model.Teams,"(Ninguno)")%>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

